//---------------------------------------------------------------------
// <copyright file="CsdlAssociationSetEnd.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL association set end.
    /// </summary>
    internal class CsdlAssociationSetEnd : CsdlElementWithDocumentation
    {
        private readonly string role;
        private readonly string entitySet;

        public CsdlAssociationSetEnd(string role, string entitySet, CsdlDocumentation documentation, CsdlLocation location)
            : base(documentation, location)
        {
            this.role = role;
            this.entitySet = entitySet;
        }

        public string Role
        {
            get { return this.role; }
        }

        public string EntitySet
        {
            get { return this.entitySet; }
        }
    }
}
